package com.zyh.array;

import java.util.Random;
import java.util.Scanner;

public class ArrayDemo1 {
    public static void main(String[] args) {
        /*
        分别创建所有的基本数据类型的数组，创建Scanner数组，Random数组
         */
        byte[] arr1 = {1, 2, 3, 4, 5};
        System.out.println("arr1 = " + arr1);
        short[] arr2 = new short[2];
        System.out.println("arr2 = " + arr2);
        int[] arr3 = new int[]{1, 2, 3, 4};
        System.out.println("arr3 = " + arr3);
        long[] arr4 = new long[]{1, 2, 3, 4, 5};
        System.out.println("arr4 = " + arr4);
        float[] arr5 = new float[3];
        System.out.println("arr5 = " + arr5);
        double[] arr6 = {0.3, 0.5};
        System.out.println("arr6 = " + arr6);
        char[] arr7 = {'a', 'b', 'c'};
        System.out.println("arr7 = " + arr7);
        boolean[] arr8 = new boolean[2];
        System.out.println("arr8 = " + arr8);
        Scanner[] arr9 = new Scanner[2];
        System.out.println("arr9 = " + arr9);
        Random[] arr10 = new Random[2];
        System.out.println("arr10 = " + arr10);
    }
}
